package models

import (
	"github.com/astaxie/beego/orm"
)

type ProductItem struct {
	Id       int
	Name     string   `description:"名称"`
	Number   int      `description:"库存"`
	Price    float64  `orm:"type(decimal)" description:"原价格"`
	RelPrice float64  `orm:"type(decimal)" description:"真实价格"`
	Product  *Product `orm:"rel(fk)"`
}

func init() {
	orm.RegisterModel(new(ProductItem))
}
